﻿﻿using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace UI.Module.Statistical.json
{
    public partial class getPieJson : System.Web.UI.Page
    {
        JsonBLL bll = new JsonBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                json(Request["date"], Request["shopid"]);
            }
        }
        private void json(string date, string shopid)
        {
            if (date!="")
            {
                date = Convert.ToDateTime(date).ToString("yyyy-MM");
            }
            Response.Write(bll.GetOrderZb(shopid, date));
        }
    }
}